package com.keeping.aiimagery.service;

import com.keeping.aiimagery.entity.LoginDto;
import com.keeping.aiimagery.entity.UpdataVo;
import com.keeping.aiimagery.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author keeping
 * @since 2023-04-05
 */
public interface UserService extends IService<User> {
    public void updataById(UpdataVo updataVo);
    public Integer getIntegralById(String userAccount);
    public Integer findByAccount(String userAccount);
    public Integer findByYaoqingma(String invitationCode);
    void insert(@Param("username") String username,@Param("password") String password,@Param("phone") String phone, @Param("invitationCode") String invitationCode);

     HashMap<String, String> userLogin(String userAccount, String password);


    User findUser(String userAccount);

    public void updataByInvite(UpdataVo updataVo);

    public boolean findphone(String phone);

    public User getmsg(String phone);

    public void updateconsume(@Param("integral") Integer integral,@Param("remain") Integer remain,@Param("userId") String userId);

    public void updateconsumecount(@Param("integral") Integer integral, @Param("remaincount") Integer remaincount, @Param("userId") String userId);

    public void updateconsumestorage(@Param("integral") Integer integral, @Param("remainstorage") Integer remainstorage, @Param("userId") String userId);

}
